<?php
$article = $this->paginator;
$country = $this->country;
$t 		 = $this->type ? $this->type : M_DbTable_Article::REGION_ARTICLE_TYPE_TRAVEL_DESTINATION;
$type = array(
		M_DbTable_Article::REGION_ARTICLE_TYPE_TRAVEL_DESTINATION => 'Travel_Destination'
);
$labelType = $type[$t];
?>
<div class="wrapper-content">
    <div class="top-title">
        <div class="content-title">
            <h2><?php echo $country['name']
                .' <img src="/static/default/images/bulleted.png" class="bulleted" style="margin-bottom:2px"> '
                . $this->translate($labelType); ?>
            </h2>
        </div>
    </div>

    <div class="span12" id="content-right-2">
        <?php if($article): ?>
            <?php foreach($article as $k => $v): ?>
            	<div class="article-item">
            	    <?php if($v['thumbnail']): ?>
                	    <a href="<?php echo "/travel-destination/detail/". $t .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>">
                            <img src="<?php echo $v['thumbnail']; ?>" class="article-thumbnail">
                        </a>
                        <div class="article-item-title">
                            <h5><a href="<?php echo "/travel-destination/detail/". $t .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>"><?php echo $v['region_name'] . ' : ' . $v['title']; ?></a></h5>
                        </div>
                        <div class="view-detail" style="margin-top:5px;">
        				    <a href="<?php echo "/travel-destination/detail/". $t .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
        				</div>
                    <?php else: ?>
                        <div class="article-item-title" style="width:100%;">
                            <h4><a href="<?php echo "/travel-destination/detail/". $t .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>"><?php echo $v['title']; ?></a></h4>
                        </div>
                        <div class="article-item-overview" style="width:100%;">
                            <?php echo $this->snippet($v['overview'], 400);?>
                        </div>
                        <div class="view-detail" style="margin-top:5px;width:100%">
        				    <a href="<?php echo "/travel-destination/detail/". $t .'-'. $v['id'].'-'.str_replace(' ', '-' ,trim($v['title'])).'.html'; ?>" class="see-more"><?php echo $this->translate('See more >>'); ?></a>
        				</div>
        		    <?php endif; ?>
                </div>
            <?php endforeach; ?>
        <?php else: ?>
             <h5 style="margin-left: 30px;"><?php echo $this->translate('Updating_data') ?></h5>
        <?php endif; ?>
        <!--// pagination -->
    	<div style="width: 100%;float:right;margin-right:10px;">
    	    <?php echo ($this->paginator ? $this->partial("/components/pager/table_pager.phtml",$this) : "");?>
    	</div>
    </div>
    <div class="span4" id="content-left-2">
        <?php echo $this->partial('/right-render/support.phtml'); ?>
    </div>
</div>